a = 1.234567
b = 1.2345678
c = 1.234
print("%f" %a)
print("%f" %b)
print("%f" %c)

print("自定义保留的小数位数")
d = 1.23456
print("%.3f" %d)

